package com.Interfaces.ordinary;

// 学生
public class Student extends Person {
    private String name;
    private String phone;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    // 定义方法
    public void show() {
        System.out.println("另一种注入类方法");
    }

    public static void main(String[] args) {

    }
}
